#include "BizEnv.h"
#include "platform.h"

#define ENABLE_TIMER 0
static void CALLBACK TestProc(HWND, UINT, UINT_PTR, DWORD);

BizEnv::BizEnv(void)
	: m_company(L"SBODEMOUS")
{
#if ENABLE_TIMER == 1
	SetTimer(NULL, 100, 5000, TestProc);
#endif
}


BizEnv::~BizEnv(void)
{
#if ENABLE_TIMER == 1
	KillTimer(NULL, 100);
#endif
}

unique_ptr<BizEnv> BizEnv::s_instance;

BizEnv& BizEnv::instance()
{
	if(!s_instance)
	{
		s_instance.reset(new BizEnv());
	}
	return *s_instance;
}
void BizEnv::startup()
{
}
void BizEnv::shutdown()
{
}

void CALLBACK TestProc(HWND, UINT, UINT_PTR, DWORD)
{
	BizEnv::instance().m_company += L"@";
}